package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class POrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public POrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdrIdIsNull() {
            addCriterion("odr_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrIdIsNotNull() {
            addCriterion("odr_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrIdEqualTo(Integer value) {
            addCriterion("odr_id =", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotEqualTo(Integer value) {
            addCriterion("odr_id <>", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThan(Integer value) {
            addCriterion("odr_id >", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_id >=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThan(Integer value) {
            addCriterion("odr_id <", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_id <=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdIn(List<Integer> values) {
            addCriterion("odr_id in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotIn(List<Integer> values) {
            addCriterion("odr_id not in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_id between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_id not between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNull() {
            addCriterion("odr_code is null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNotNull() {
            addCriterion("odr_code is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeEqualTo(String value) {
            addCriterion("odr_code =", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotEqualTo(String value) {
            addCriterion("odr_code <>", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThan(String value) {
            addCriterion("odr_code >", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThanOrEqualTo(String value) {
            addCriterion("odr_code >=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThan(String value) {
            addCriterion("odr_code <", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThanOrEqualTo(String value) {
            addCriterion("odr_code <=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLike(String value) {
            addCriterion("odr_code like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotLike(String value) {
            addCriterion("odr_code not like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIn(List<String> values) {
            addCriterion("odr_code in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotIn(List<String> values) {
            addCriterion("odr_code not in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeBetween(String value1, String value2) {
            addCriterion("odr_code between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotBetween(String value1, String value2) {
            addCriterion("odr_code not between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNull() {
            addCriterion("odr_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNotNull() {
            addCriterion("odr_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeEqualTo(Integer value) {
            addCriterion("odr_type =", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotEqualTo(Integer value) {
            addCriterion("odr_type <>", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThan(Integer value) {
            addCriterion("odr_type >", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_type >=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThan(Integer value) {
            addCriterion("odr_type <", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_type <=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIn(List<Integer> values) {
            addCriterion("odr_type in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotIn(List<Integer> values) {
            addCriterion("odr_type not in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_type between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_type not between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNull() {
            addCriterion("odr_red_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNotNull() {
            addCriterion("odr_red_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagEqualTo(Integer value) {
            addCriterion("odr_red_flag =", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotEqualTo(Integer value) {
            addCriterion("odr_red_flag <>", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThan(Integer value) {
            addCriterion("odr_red_flag >", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag >=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThan(Integer value) {
            addCriterion("odr_red_flag <", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag <=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIn(List<Integer> values) {
            addCriterion("odr_red_flag in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotIn(List<Integer> values) {
            addCriterion("odr_red_flag not in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag not between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagIsNull() {
            addCriterion("odr_change_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagIsNotNull() {
            addCriterion("odr_change_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagEqualTo(Integer value) {
            addCriterion("odr_change_flag =", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagNotEqualTo(Integer value) {
            addCriterion("odr_change_flag <>", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagGreaterThan(Integer value) {
            addCriterion("odr_change_flag >", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_change_flag >=", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagLessThan(Integer value) {
            addCriterion("odr_change_flag <", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_change_flag <=", value, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagIn(List<Integer> values) {
            addCriterion("odr_change_flag in", values, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagNotIn(List<Integer> values) {
            addCriterion("odr_change_flag not in", values, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_change_flag between", value1, value2, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrChangeFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_change_flag not between", value1, value2, "odrChangeFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagIsNull() {
            addCriterion("odr_req_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagIsNotNull() {
            addCriterion("odr_req_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagEqualTo(Integer value) {
            addCriterion("odr_req_flag =", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagNotEqualTo(Integer value) {
            addCriterion("odr_req_flag <>", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagGreaterThan(Integer value) {
            addCriterion("odr_req_flag >", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_req_flag >=", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagLessThan(Integer value) {
            addCriterion("odr_req_flag <", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_req_flag <=", value, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagIn(List<Integer> values) {
            addCriterion("odr_req_flag in", values, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagNotIn(List<Integer> values) {
            addCriterion("odr_req_flag not in", values, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_req_flag between", value1, value2, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrReqFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_req_flag not between", value1, value2, "odrReqFlag");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNull() {
            addCriterion("odr_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNotNull() {
            addCriterion("odr_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrDateEqualTo(Date value) {
            addCriterion("odr_date =", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotEqualTo(Date value) {
            addCriterion("odr_date <>", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThan(Date value) {
            addCriterion("odr_date >", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_date >=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThan(Date value) {
            addCriterion("odr_date <", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_date <=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateIn(List<Date> values) {
            addCriterion("odr_date in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotIn(List<Date> values) {
            addCriterion("odr_date not in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateBetween(Date value1, Date value2) {
            addCriterion("odr_date between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_date not between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNull() {
            addCriterion("odr_take_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNotNull() {
            addCriterion("odr_take_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonEqualTo(String value) {
            addCriterion("odr_take_person =", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotEqualTo(String value) {
            addCriterion("odr_take_person <>", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThan(String value) {
            addCriterion("odr_take_person >", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_person >=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThan(String value) {
            addCriterion("odr_take_person <", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_take_person <=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLike(String value) {
            addCriterion("odr_take_person like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotLike(String value) {
            addCriterion("odr_take_person not like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIn(List<String> values) {
            addCriterion("odr_take_person in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotIn(List<String> values) {
            addCriterion("odr_take_person not in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonBetween(String value1, String value2) {
            addCriterion("odr_take_person between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotBetween(String value1, String value2) {
            addCriterion("odr_take_person not between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNull() {
            addCriterion("odr_remark is null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNotNull() {
            addCriterion("odr_remark is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkEqualTo(String value) {
            addCriterion("odr_remark =", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotEqualTo(String value) {
            addCriterion("odr_remark <>", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThan(String value) {
            addCriterion("odr_remark >", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("odr_remark >=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThan(String value) {
            addCriterion("odr_remark <", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThanOrEqualTo(String value) {
            addCriterion("odr_remark <=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLike(String value) {
            addCriterion("odr_remark like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotLike(String value) {
            addCriterion("odr_remark not like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIn(List<String> values) {
            addCriterion("odr_remark in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotIn(List<String> values) {
            addCriterion("odr_remark not in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkBetween(String value1, String value2) {
            addCriterion("odr_remark between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotBetween(String value1, String value2) {
            addCriterion("odr_remark not between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNull() {
            addCriterion("odr_make_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNotNull() {
            addCriterion("odr_make_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateEqualTo(Date value) {
            addCriterion("odr_make_date =", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotEqualTo(Date value) {
            addCriterion("odr_make_date <>", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThan(Date value) {
            addCriterion("odr_make_date >", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_make_date >=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThan(Date value) {
            addCriterion("odr_make_date <", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_make_date <=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIn(List<Date> values) {
            addCriterion("odr_make_date in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotIn(List<Date> values) {
            addCriterion("odr_make_date not in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateBetween(Date value1, Date value2) {
            addCriterion("odr_make_date between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_make_date not between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdIsNull() {
            addCriterion("odr_take_workshop_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdIsNotNull() {
            addCriterion("odr_take_workshop_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdEqualTo(Integer value) {
            addCriterion("odr_take_workshop_id =", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdNotEqualTo(Integer value) {
            addCriterion("odr_take_workshop_id <>", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdGreaterThan(Integer value) {
            addCriterion("odr_take_workshop_id >", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_take_workshop_id >=", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdLessThan(Integer value) {
            addCriterion("odr_take_workshop_id <", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_take_workshop_id <=", value, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdIn(List<Integer> values) {
            addCriterion("odr_take_workshop_id in", values, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdNotIn(List<Integer> values) {
            addCriterion("odr_take_workshop_id not in", values, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_take_workshop_id between", value1, value2, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_take_workshop_id not between", value1, value2, "odrTakeWorkshopId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIsNull() {
            addCriterion("odr_make_person_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIsNotNull() {
            addCriterion("odr_make_person_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdEqualTo(Integer value) {
            addCriterion("odr_make_person_id =", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotEqualTo(Integer value) {
            addCriterion("odr_make_person_id <>", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdGreaterThan(Integer value) {
            addCriterion("odr_make_person_id >", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_make_person_id >=", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdLessThan(Integer value) {
            addCriterion("odr_make_person_id <", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_make_person_id <=", value, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdIn(List<Integer> values) {
            addCriterion("odr_make_person_id in", values, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotIn(List<Integer> values) {
            addCriterion("odr_make_person_id not in", values, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_make_person_id between", value1, value2, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_make_person_id not between", value1, value2, "odrMakePersonId");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagIsNull() {
            addCriterion("odr_adjust_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagIsNotNull() {
            addCriterion("odr_adjust_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagEqualTo(Integer value) {
            addCriterion("odr_adjust_flag =", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagNotEqualTo(Integer value) {
            addCriterion("odr_adjust_flag <>", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagGreaterThan(Integer value) {
            addCriterion("odr_adjust_flag >", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_adjust_flag >=", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagLessThan(Integer value) {
            addCriterion("odr_adjust_flag <", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_adjust_flag <=", value, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagIn(List<Integer> values) {
            addCriterion("odr_adjust_flag in", values, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagNotIn(List<Integer> values) {
            addCriterion("odr_adjust_flag not in", values, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_adjust_flag between", value1, value2, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrAdjustFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_adjust_flag not between", value1, value2, "odrAdjustFlag");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIsNull() {
            addCriterion("odr_out_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIsNotNull() {
            addCriterion("odr_out_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeEqualTo(Integer value) {
            addCriterion("odr_out_type =", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotEqualTo(Integer value) {
            addCriterion("odr_out_type <>", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeGreaterThan(Integer value) {
            addCriterion("odr_out_type >", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_out_type >=", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeLessThan(Integer value) {
            addCriterion("odr_out_type <", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_out_type <=", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIn(List<Integer> values) {
            addCriterion("odr_out_type in", values, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotIn(List<Integer> values) {
            addCriterion("odr_out_type not in", values, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_type between", value1, value2, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_type not between", value1, value2, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIsNull() {
            addCriterion("odr_dept is null");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIsNotNull() {
            addCriterion("odr_dept is not null");
            return (Criteria) this;
        }

        public Criteria andOdrDeptEqualTo(Integer value) {
            addCriterion("odr_dept =", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotEqualTo(Integer value) {
            addCriterion("odr_dept <>", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptGreaterThan(Integer value) {
            addCriterion("odr_dept >", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_dept >=", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptLessThan(Integer value) {
            addCriterion("odr_dept <", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptLessThanOrEqualTo(Integer value) {
            addCriterion("odr_dept <=", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIn(List<Integer> values) {
            addCriterion("odr_dept in", values, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotIn(List<Integer> values) {
            addCriterion("odr_dept not in", values, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptBetween(Integer value1, Integer value2) {
            addCriterion("odr_dept between", value1, value2, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_dept not between", value1, value2, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNull() {
            addCriterion("odr_rep_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNotNull() {
            addCriterion("odr_rep_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdEqualTo(String value) {
            addCriterion("odr_rep_id =", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotEqualTo(String value) {
            addCriterion("odr_rep_id <>", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThan(String value) {
            addCriterion("odr_rep_id >", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThanOrEqualTo(String value) {
            addCriterion("odr_rep_id >=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThan(String value) {
            addCriterion("odr_rep_id <", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThanOrEqualTo(String value) {
            addCriterion("odr_rep_id <=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLike(String value) {
            addCriterion("odr_rep_id like", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotLike(String value) {
            addCriterion("odr_rep_id not like", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIn(List<String> values) {
            addCriterion("odr_rep_id in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotIn(List<String> values) {
            addCriterion("odr_rep_id not in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdBetween(String value1, String value2) {
            addCriterion("odr_rep_id between", value1, value2, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotBetween(String value1, String value2) {
            addCriterion("odr_rep_id not between", value1, value2, "odrRepId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}